package com.airy.apprepairequipment.service.impl;

import com.airy.apprepairequipment.common.utils.PageUtils;
import com.airy.apprepairequipment.common.utils.Query;
import com.airy.apprepairequipment.dao.RtJdloopgroupDao;
import com.airy.apprepairequipment.entity.RtJdloopgroupEntity;
import com.airy.apprepairequipment.service.RtJdloopgroupService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("rtJdloopgroupService")
public class RtJdloopgroupServiceImpl extends ServiceImpl<RtJdloopgroupDao, RtJdloopgroupEntity> implements RtJdloopgroupService {


    @Autowired
    RtJdloopgroupDao rtJdloopgroupDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RtJdloopgroupEntity> page = this.page(
                new Query<RtJdloopgroupEntity>().getPage(params),
                new QueryWrapper<RtJdloopgroupEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public RtJdloopgroupEntity selectByFstrLoopgroupid(String fstrLoopgroupid) {
        return rtJdloopgroupDao.selectByFstrLoopgroupid(fstrLoopgroupid);
    }

    @Override
    public void insertRT(RtJdloopgroupEntity rtentity) {
        rtJdloopgroupDao.insertRT(rtentity);
    }

    @Override
    public void insertWeiBoRT(RtJdloopgroupEntity rtJdloopgroupEntity) {
        rtJdloopgroupDao.insertWeiBoRT(rtJdloopgroupEntity);
    }


}